import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import {getCode} from '@/utils/oauthScope.js' // plugins
import {desensitizationName,desensitizationIdCard,desensitizationPhone,parseTime,desensitizationNormalStr} from '@/utils/tuomin.js'// import uView from 'uview-ui'
// import uView from '@/uni_modules/uview-ui'
import {idCard,toast,msg} from '@/utils/common.js'

// Vue.use(uView)
// import './permission' // permission
Vue.use(plugins)
// main.js
import uView from "uview-ui";
Vue.use(uView);


Vue.config.ignoredElements.push('wx-open-launch-weapp')



Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$getCode = getCode
Vue.prototype.$parseTime = parseTime
Vue.prototype.$desensitizationName = desensitizationName
Vue.prototype.$desensitizationIdCard = desensitizationIdCard
Vue.prototype.$desensitizationPhone = desensitizationPhone
Vue.prototype.$desensitizationNormalStr = desensitizationNormalStr
Vue.prototype.$idCard = idCard
Vue.prototype.$toast = toast
Vue.prototype.$msg = msg

import common from '@/utils/common.js'
Vue.prototype.$comm = common;

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()
